package com.temi.iot.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author one
 * @since 2019-12-11
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_role")
@ApiModel(value="SysRole对象", description="")
@NoArgsConstructor
@AllArgsConstructor
public class SysRole extends Model<SysRole> {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "父级ID")
    private Integer roleGroupId;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(hidden = true)
    private Integer deleteType;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
